import request from '../utils/request';

//查询一个厂家的所有联系人信息
export const selectPhoneByFkId = query => {
    return request({
        url: '/api/srm/contacts/selectByFkId',
        method:'post',
        // url:'./json/selectAllPhone.json',
        // method: 'get',
        params: query
    });
};
//添加一个厂家的联系人
export const doAddContacts = query => {
    return request({
        url: '/api/srm/contacts/doAdd',
        method:'post',
        // url:'./json/true.json',
        // method: 'get',
        data: query
    });
};
/*修改联系人*/
export const doUpdateContacts = query => {
    return request({
        url: '/api/srm/contacts/doUpdate',
        method:'post',
        // url:'./json/true.json',
        // method: 'get',
        data: query
    });
};
/*删除联系人*/
export const doDeleteContacts = query => {
    return request({
        url: '/api/srm/contacts/doDelete',
        method:'post',
        // url:'./json/true.json',
        // method: 'get',
        params: query
    });
};
//查询一个联系人信息
export const selectByconId = query => {
    return request({
        url: '/api/srm/contacts/selectById',
        method:'post',
        // url:'./json/selectOnePhone.json',
        // method: 'get',
        params: query
    });
};



